Raises a generic event with a specific event
argument type to the application
Namespace:
Microsoft.Rtc.Collaboration
Assembly:
Microsoft.Rtc.Collaboration(in
Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
Protected
Sub
RaiseEvent(
Of TEventArg
As
EventArgs) ( _
handler
As
EventHandler(
Of TEventArg), _
sender
As
Object, _
e
As TEventArg _
)
|
C# |
protected
void
RaiseEvent<TEventArg>(
EventHandler<TEventArg>
handler,
Object
sender,
TEventArg
e
)
where TEventArg :
EventArgs
|
Visual C++ |
protected:
generic<
typename TEventArg>
where TEventArg :
EventArgs
void
RaiseEvent(
EventHandler<TEventArg>^
handler,
Object^
sender,
TEventArg
e
)
|
JavaScript |
JavaScript does not support generic types or
methods.
|
Parameters
-
handler
- Type:
EventHandler
<
(Of
<
(
TEventArg
>
)
>
)
The event handler.
-
sender
- Type:
Object
sender for the event
-
e
- Type:
TEventArg
The event argument.
Type Parameters
-
TEventArg
- The event argument type.
Exceptions
Exception |
Condition |
ArgumentNullException
|
Thrown when the
handler,
senderor
eparameter is null |
See Also